<style>.form-horizontal .form-item{display:inline;} .form-horizontal .item-label{display:inline;}</style>
<form action="{:U('Think/lists','model='.$model['name'])}" method="POST" class="form-horizontal" style="float:right;">
	<switch name="model.name">
	    <case value="qrcode">
	    	<?php $qrcodeCategoryList = D('QrcodeCategory')->select(); ?>
	    	<assign name="cates" value="$qrcodeCategoryList" />
	    	<label class="item-label">所属分类</label>
	    	<select name="qrcode_category_id">
	           	<option value="0">请选择</option>
	           	<volist name="cates" id="vo">
	                <option value="{$vo.id}" <if condition="I('qrcode_category_id') eq $vo['id']">selected="selected"</if> >{$vo.title}</option>
	            </volist>
	        </select>
		           
		    <?php $schoolList = D('School')->select(); ?>
	    	<assign name="schools" value="$schoolList" />
	    	<label class="item-label">所属学校</label>
	    	<select name="school_id">
	           	<option value="0">请选择</option>
	           	<volist name="schools" id="vo">
	                <option value="{$vo.id}" <if condition="I('school_id') eq $vo['id']">selected="selected"</if> >{$vo.title}</option>
	            </volist>
	        </select>
	    </case>
	    <case value="building">
	    	<?php $schoolList = D('School')->select(); ?>
	    	<assign name="schools" value="$schoolList" />
	    	<label class="item-label">所属学校</label>
	    	<select name="school_id">
	           	<option value="0">请选择</option>
	           	<volist name="schools" id="vo">
	                <option value="{$vo.id}" <if condition="I('school_id') eq $vo['id']">selected="selected"</if> >{$vo.title}</option>
	            </volist>
	        </select>
	    </case>
	</switch>
	
	<input type="text" class="text input-middle" name="title" value="{:I('title')}" />
	
    <div class="form-item">
        <button class="btn" id="" type="submit">确 定</button>
    </div>
</form>